import { axios } from '@/utils/request'

const api = {
  list: '/store.bank/list',
  update: '/store.bank/edit',
  add: '/store.bank/add',
  delete: '/store.bank/delete'
}

/**
 * 获取线下收付卡信息
 */
export function list (data) {
  return axios({
    url: api.list,
    method: 'post',
    data
  })
}

/**
 * 更新
 * @param {*} data
 */
export function update (data) {
  return axios({
    url: api.update,
    method: 'post',
    data
  })
}

/**
 * 新增
 * @param {*} data
 */
export function add (data) {
  return axios({
    url: api.add,
    method: 'post',
    data
  })
}

/**
 * 删除
 * @param {*} data
 */
export function remove (data) {
  return axios({
    url: api.delete,
    method: 'post',
    data
  })
}
